# -*- coding: utf-8 -*-
# @Author : HaleShi
# @Time : 2023-06-06
# @File : 9_did_mac.py

import random
import string


def create_random_mac(sep=""):
    """ 随机生成mac地址 """
    data_list = []
    for i in range(1, 7):
        part = "".join(random.sample("0123456789ABCDEF", 2))
        data_list.append(part)
    mac = sep.join(data_list)
    return mac.lower()


mac_string = create_random_mac(sep="")

prev_did = f"{mac_string}|||"
print(prev_did)
